package com.itheima.sh.config;

import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author balisong_fcs
 * @date 2020/12/20 20:38
 * 自动话配置类的最佳实践
 */

@Configuration
@EnableFeignClients(basePackages = "com.itheima.sh.feign")
public class FeignAutoConfiguration {

    /**
     *@desc 顺便配置Feign的日志级别
     */
    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }

}
